package face.pay.api.withdraw.controller;

import face.pay.api.withdraw.service.IWithdrawPushService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 推送到代付服务器
 */
@Controller
@RequestMapping("/withdraw")
public class WithdrawPushController {

    @Autowired
    private IWithdrawPushService iWithdrawPushService;

    @RequestMapping("/order")
    @ResponseBody
    public Map withdrawOut(@RequestParam Map map){

        return this.iWithdrawPushService.pushOrder(map);
    }
}
